<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.w3.org/1999/xhtml">
<head>
    <title>采购计划管理</title>
</head>
<body>
<section class="content-header">
    <h1>
        <label>管理系统</label> <small>采购计划管理</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="/userController/index"><i class="fa fa-home"></i> 首页</a></li>
        <li><a href="#">项目招投标</a></li>
        <li class="active">采购计划管理</li>
    </ol>
</section>

<section class="content">
    <div class="box box-success lastBox">
        <div class="box-header with-border">
            <div class="row">
                <div class="col-md-12">

                    <div class="form-inline">
                        <div class="form-group">
                            <label>所属规划：</label>
                            <select id="planProjClass" name="planProjClass" class="form-control select2">

                            </select>
                        </div>
                        <div class="form-group">
                            <label>建设单位：</label>
                            <select id="orgId" name="orgId" class="form-control select2">

                            </select>
                        </div>
                        <div class="form-group">
                            <label>实施项目：</label>
                            <select  id="implProjectId" name="implProjectId" class="form-control select2"></select>
                            <!--<div class="input-group">-->
                            <!--<input type="text" class="form-control" disabled="disabled" id="projuectOut"/>-->
                            <!--<input type="text" class="hidden" id="belongPlan">-->
                            <!--<span class="input-group-btn">-->
                            <!--<button class="btn btn-default" type="button"  id="projectBtn" ><i class="fa fa-search"></i></button>-->
                            <!--</span>-->
                            <!--</div>-->
                        </div>
                        <div class="form-group">
                            <label for="startDt" class="control-label">开始时间</label>
                            <input id="startDt" type="text" class="form-control datetimepicker" name="startDt"/>
                        </div>
                        <div class="form-group">
                            <label for="endDt" class="control-label">结束时间</label>
                            <input id="endDt" type="text" class="form-control datetimepicker" name="endDt"/>
                        </div>
                        <div class="form-group">
                            <label>招标状态：</label>
                            <select id="purchaseStatusCd" name="statusCd" class="form-control select2">

                            </select>
                        </div>


                        <div class="form-group search-top-right-btn">
                            <!--
                            <button id="search-btn" type="submit"
                                    class="btn btn-border search " data-toggle="tooltip" value="">
                                <i class="fa fa-search"></i> 查询
                            </button>-->
                            <button id="btn_add" type="button" class="btn btn-border">
                                <i class="fa fa-plus"></i> 增加
                            </button>
                            <!--
                           <button id="btn_reset" type="button" class="btn btn-border">
                               <i class="fa fa-refresh"></i> 重置
                           </button>-->
                            <button id="btn_del" type="button" class="btn btn-info">
                                <i class="fa fa-trash"></i> 批量删除
                            </button>
                            <button id="btn_export" type="button" class="btn btn-info">
                                <i class="fa fa-share-square-o"></i> 导出
                            </button>
                            <button id="btn_print" type="button" class="btn btn-info">
                                <i class="fa fa-print"></i> 打印
                            </button>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <div class="box-body">
            <table id="planList"></table>
        </div>
    </div>
</section>

<div class="modal fade bs-example-modal-lg" id="purchasePlanModal" role="dialog"
     aria-labelledby="purchasePlanModalLabel" aria-hidden="true" >
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <form role="form" id="purchasePlanForm">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> &times; </button>
                    <h4 class="modal-title" id="purchasePlanModalLabel">采购计划</h4>
                </div>
                <div class="modal-body row">
                    <input id="purchPlanId" class="hidden"/>
                    <!--
                      <div class="form-group col-md-12">
                          <label for="projectName" class="control-label">项目名称</label>
                          <div class="input-group">
                          <input type="text" class="form-control" disabled="disabled" id="projectNameText"/>
                              <input type="text" class="form-control hidden" id="projectName" name="projectName"/>
                              <span class="input-group-btn"><button class="btn btn-default" type="button"  id="itemBtn" ><i class="fa fa-search"></i></button></span>
                          </div>
                         </div>-->
                    <div class="col-md-4">
                        <div class="form-group">
                            <label for="orgInfo" class="control-label">建设单位</label>
                            <select id="orgInfo"   class="form-control select2" name="orgInfo"></select>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="form-group">
                            <label for="planProjClassInfo" class="control-label">所属规划</label>
                            <select id="planProjClassInfo"   class="form-control select2" name="planProjClassInfo"></select>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="form-group">
                            <label for="implProjectInfo" class="control-label">实施项目</label>
                            <select id="implProjectInfo"   class="form-control select2" name="implProjectInfo"></select>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="form-group">
                            <label for="purchPlanCode" class="control-label">计划编号</label>
                            <input id="purchPlanCode"  type="text" class="form-control" name="purchPlanCode"/>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="form-group">
                            <label for="purchPlanName" class="control-label">采购计划名称</label>
                            <input id="purchPlanName" type="text" class="form-control" name="purchPlanName"/>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="form-group">
                            <label for="purchPlanType" class="control-label">计划类型</label>
                            <select id="purchPlanType" name="purchPlanType" class="form-control select2">
                            </select>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="form-group">
                            <label for="purchWay" class="control-label">采购方式</label>
                            <select id="purchWay" name="purchWay" class="form-control select2">
                            </select>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="form-group">
                            <label for="orgList" class="control-label">代理机构</label>
                            <select id="orgList" name="orgList" class="form-control select2"></select>
                            <!--<input type="text" class="form-control" disabled="disabled" id="orgText"/>-->
                            <!--<input type="text" class="form-control hidden" id="orgList" name="orgList"/>-->
                            <!--<input type="hidden" class="form-control hidden" id="printdata" name="printdata"/>-->
                            <!--<span class="input-group-btn"><button class="btn btn-default" type="button"  id="orgBtn1" ><i class="fa fa-search"></i></button></span>-->
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="form-group">
                            <label for="prePayTotal" class="control-label">预算总价</label>
                            <input id="prePayTotal" type="text" class="form-control" name="prePayTotal"/>
                        </div>
                    </div>

                    <div class="col-md-4">
                        <div class="form-group">
                            <label for="giveDt" class="control-label">下达时间</label>
                            <input id="giveDt" type="text" class="form-control datetimepicker" name="giveDt"/>
                        </div>
                    </div>
                    <!--
                    <div class="col-md-6">
                    <div class="form-group">
                        <label for="statusCd" class="control-label">状态</label>
                        <select id="statusCd" name="statusCd" class="form-control select2">
                        </select>
                    </div>
                    </div>
                    -->
                    <div class="col-md-8">
                        <div class="form-group">
                            <label for="description" class="control-label">备注</label>
                            <textarea id="description" name="description" class="form-control" rows="2" placeholder="请输入备注" ></textarea>
                        </div>
                    </div>
                </div>
            </form>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" id="ensureBtn">保存</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<div class="modal fade  bs-example-modal-lg" id="addFileModal" >
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">上传文件</h4>
            </div>
            <div class="modal-body">
                <form id="fileForm" enctype="multipart/form-data">

                    <div class="row noMargin">
                        <div class="col-sm-12">
                            <div class="file_chose">
                                <button type="button" class="btn btn-info" id="common_file_bnt"></button><br/>
                                <p class="text-muted" ><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>doc、docx、xls、xlsx、ppt、pptx、pdf、jpg、png、gif、bmp、jpeg文件格式</p>
                            </div>
                        </div>
                    </div>

                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="uploadBtn">保存</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade bs-example-modal-lg" id="projectSearchModal" ></div>
<div class="modal fade bs-example-modal-lg" id="unitSearchModal" ></div>
<div class="modal fade bs-example-modal-lg" id="itemSearchModal" ></div>
<script th:src="@{/js/pub-lib/jquery-ui-datepicker.min.js}"></script>
<script th:src="@{/js/pub-lib/jquery-ui-datepicker.zh-CN.js}"></script>
<script th:src="@{/js/pub-lib/plugins/select2/select2.full.min.js}"></script>
<script th:src="@{/js/pub-lib/plugins/easyui/jquery.easyui.min.mylocal.js}"></script>
<script th:src="@{/js/pub-lib/plugins/bootstrap-validator/bootstrapValidator.min.js}"></script>
<script th:src="@{/js/our-lib/commpent/constantcommpent.js}"></script>
<script th:src="@{/js/our-lib/commpent/unitsearchcommpent.js}"></script>
<script th:src="@{/js/our-lib/commpent/projectsearchcommpent.js}"></script>
<script type="text/javascript" src="../js/our-lib/commpent/unitselcommpent.js"></script>
<script type="text/javascript" th:src="@{/js/our-lib/commpent/project2unit2itemcommpent.js}"></script>
<script th:src="@{/js/pub-lib/plugins/easyui/datagrid-detailview.js}"></script>
<script th:src="@{/js/our-lib/commpent/itemsearchcommpent.js}"></script>
<script th:src="@{/js/our-lib/purchasePlan/purchasePlan.js}"></script>

</body>
</html>
